﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Escuela.Forms
{
    public partial class EnviarMail : Form
    {
        private Instituto inst;
        private string file;
        public EnviarMail(Instituto inst, string file)
        {
            InitializeComponent();
            this.inst = inst;
            this.file = file;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                this.inst.enviarMailInformeMoroso(this.textBox1.Text, this.file);
                this.Close();
            }
            catch (Exception ex)
            {
 
            }
        }

        private void EnviarMail_Load(object sender, EventArgs e)
        {

        }
    }
}
